<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <p id="btn"></p>
  <script>
    let btn = document.querySelector('#btn');
    btn.innerHTML='<button>我是js出来的</button>'
    // btn.textContent='<button>我是js出来的</button>'
  </script>
</body>

</html>